<script lang="ts" setup>
import { onMounted, ref } from 'vue';
import Render from '@/package/Render.vue';

// 初始化内容（默认内容）
import xml from './xml';

const formData = ref<any>({});
onMounted(() => {
  formData.value = {
    nodeData: [
      {
        key: 'Activity_01h1oc0',
        completed: false
      },
      {
        key: 'start_event',
        completed: true
      },
      {
        key: 'Flow_0sov20y',
        completed: true
      }
    ],
    xmlData: xml
  };
});
</script>

<template>
  <Render :flow-data="formData" :is-viewer="true" />
</template>

<style lang="scss" scoped></style>
